<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .father {
      width: 400px;
      background-color: pink;
    }

    img {
      /* 解决方法一：改变img标签的垂直对齐方式不为baseline即可 */
      /* vertical-align: bottom; */

      /* 解决方法二：设置img转换成块级元素 */
      display: block;
    }

  </style>
</head>
<body>
  <div class="father">
    <img src="./images/1.jpg" alt="">
  </div>
</body>
</html>